import request from '@/utils/request'

// 登录
export const getArtivles = params => request.get('/admin/interview/query', { params })

// 获取
export const addArtivles = data => request.post('/admin/interview/create', data)

// 删除
export const removeArticle = id => {
  return request.delete('/admin/interview/remove', {

    data: { // 请求体需要携带的参数
      id
    }
  })
}

// 获取单个
export const getaddArticle = id => {
  return request.get('/admin/interview/show', {

    params: {
      id
    }
  })
}

// 更新
export const delArtivles = data => request.put('/admin/interview/update', data)
